.PHONY:all
all:httpserver test_cgi
httpserver:main.cpp
	g++ -o $@ $^ -std=c++11 -lpthread
test_cgi:cgi/test_cgi.cpp
	g++ -o $@ $^ -std=c++11
.PHONY:output
output:
	mkdir -p output
	cp httpserver output
	cp -r wwwroot output
	cp test_cgi output/wwwroot
.PHONY:clean
clean:
	rm -f httpserver
	rm -f test_cgi
	rm -rf output